package com.learn.project2.model.vo.admin.goods;

import com.learn.project2.bean.MarketBrand;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description:  商品管理/商品列表/类别和商标信息 Admin/goods/catAndBrand输出映射
 * @author 曹源
 * @date  2022/1/8 11:16
 * @version 1.0
 */
@Data
@NoArgsConstructor
public class GoodsCatAndBrandVO {

    private List<CategoryListDTO> categoryList;
    private List<BrandListDTO> brandList;

    @NoArgsConstructor
    @Data
    public static class CategoryListDTO {
        private Integer value;
        private String label;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            private Integer value;
            private String label;
        }
    }

    @NoArgsConstructor
    @Data
    public static class BrandListDTO {
        private Integer value;
        private String label;
    }
}
